home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / TEMP / GNU / bison / ContextDep < prev    next >
Text File  |  1995-06-28  |  898b  |  23 lines

  1. Context Dependency
  2. Previous: <Error Recovery=>ErrorRecov> * Next: <Debugging=>Debugging> * Up: <Top=>!Root>
  3.  
  4. #Wrap on
  5. {fH2}Handling Context Dependencies{f}
  6.  
  7. The Bison paradigm is to parse tokens first, then group them into larger
  8. syntactic units.  In many languages, the meaning of a token is affected by
  9. its context.  Although this violates the Bison paradigm, certain techniques
  10. (known as {fUnderline}kludges{f}) may enable you to write Bison parsers for such
  11. languages.
  12.  
  13. #Wrap off
  14. <Semantic Tokens=>SemanticTo>:   Token parsing can depend on the semantic context.
  15. <Lexical Tie-ins=>LexicalTie>:   Token parsing can depend on the syntactic context.
  16. <Tie-in Recovery=>TieinRecov>:   Lexical tie-ins have implications for how
  17.                         error recovery rules must be written.
  18. #Wrap on
  19.  
  20. (Actually, ``kludge'' means any technique that gets its job done but is
  21. neither clean nor robust.)
  22.  
  23.